#include "BBEvent.h"


BBEvent::BBEvent( int evt,int priority,bool useCapture /*= false*/ )
	:m_bUseCapture(useCapture),
	m_iEvtType(evt),
	m_iPriority(priority),
	m_pTarget(NULL)
{

}

BBEvent::~BBEvent( void )
{
	
}

int BBEvent::getEventType()
{
	return m_iPriority;
}

void BBEvent::setEventType(int var)
{
	m_iPriority = var;
}

void BBEvent::setUseCapture(bool var)
{
	m_bUseCapture = var;
}

bool BBEvent::getUseCapture()
{
	return m_bUseCapture;
}

void BBEvent::setPriority(int var)
{
	m_iPriority = var;
}

int BBEvent::getPriority()
{
	return m_iPriority;
}

void BBEvent::setTarget(BBObject* var)
{
	m_pTarget = var;
}

BBObject* BBEvent::getTarget()
{
	return m_pTarget;
}

void BBEvent::setEventEnable(bool var)
{
	m_bEnable = var;
}

bool BBEvent::isEventEnable()
{
	return m_bEnable;
}

